package site.jlopen.service.intf;

import java.io.File;
import java.io.InputStream;
import java.net.URL;

import org.springframework.web.multipart.MultipartFile;

import site.jlopen.entity.file.FileUploadRes;

public interface FileUploadService {

	public FileUploadRes upload(File file, String path, String rename);

	public FileUploadRes upload(MultipartFile file, String path, String rename);

	public FileUploadRes uploadCa(MultipartFile file, String path, String rename);

	public FileUploadRes upload(String text, String path, String rename);

	public FileUploadRes upload(URL url, String path, String rename);

	public FileUploadRes upload(byte[] bytes, String path, String rename);

	public FileUploadRes upload(InputStream io, String path, String rename);
	
	public byte[] getBase64ToByte(String base64Str);
	
}
